home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / Car / Car.h < prev    next >
Encoding:
Text File  |  1992-06-25  |  909 b   |  56 lines

  1.  
  2. /* Generated by Interface Builder */
  3.  
  4. #import <objc/Object.h>
  5.  
  6. #define ARBITRARY 0
  7. #define LIMITED   1
  8.  
  9. @interface Car:Object
  10. {
  11.     float dragCoefficient;
  12.     float frontalArea;
  13.     float mass;
  14.     float roadForce;
  15.     float currentVelocity;
  16.     BOOL  plotVelocity;
  17.     BOOL  plotAcceleration;
  18.     id velocityGraph;
  19.     id accelerationGraph;
  20.     id powerGraph;
  21.     int   testMode;
  22.     float energy;
  23. }
  24.  
  25. // Override methods. 
  26.  
  27. - init;
  28. - read:(NXTypedStream *)stream;
  29. - write:(NXTypedStream *)stream;;
  30.  
  31. // This Class' methods
  32.  
  33. - (float)dragCoefficient;
  34. - setDragCoefficient:(float)aNumber;
  35.  
  36. - (float)frontalArea;
  37. - setFrontalArea:(float)aNumber;
  38.  
  39. - (float)mass;
  40. - setMass:(float)aNumber;
  41.  
  42. - setRoadForce:(float)aNumber;
  43.  
  44. - (float)currentVelocity;
  45.  
  46. - (BOOL)plotAcceleration;
  47. - setPlotAcceleration:(BOOL)flag;
  48.  
  49. - (int)testMode;
  50. - setTestMode:(int)mode;
  51.  
  52. - runSimulation:sender;
  53. - report:(NXStream *)stream;
  54.  
  55. @end
  56.